﻿#region [CAPService Using Statements]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Reflection;
using AccelerometerServer.Interfaces;
#endregion

namespace AccelerometerServer.Services
{
    /// <summary>
    /// Enables silverlight cross domain acess
    /// </summary>
    public class CAPService : ICAPService
    {
        #region [CAPService Interface Methods]
        /// <summary>
        /// Retrieves the cross domain client acess policy
        /// </summary>
        /// <returns>Stream containing the client acess policy</returns>
        public System.IO.Stream GetClientAccessPolicy()
        {
            return Assembly.GetExecutingAssembly().GetManifestResourceStream("AccelerometerServer.ClientAccessPolicy.xml");
        }
        #endregion
    }
}
